function WindowLoad(){
    $(document).ready(function() {

//        $('#tituloForm').corner();
//        $('#login').corner();
//        $('.menuFilho').corner("cc:#990000");
//        $('.menuPai ul li').corner();


        //toggle the componenet with class msg_body
        $(".msg_head").click(function()
        {
            $(this).next(".msg_body").slideToggle(600);
        });

        //hide the all of the element with class msg_body
        $(".msg_body").hide();
      


    });
    

}
function Colapse(){
    
}
jQuery.extend(jQuery.validator.methods, {
    number: function(value, element) {
        return this.optional(element) ||
               /^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(value);
    }
});
function AbreLogin(id){
    var status = document.getElementById('login');
    var links = document.getElementById('loginlnk');

    if ((status.style.display == "none") || (status.style.display == ""))
    {
        status.style.display = "block";
        id.innerHTML = "fechar";
    }
    else
    {
        status.style.display = "none";
        id.innerHTML = "login";
    }

}

function AbreSubMenu(id){

    var status = document.getElementById(id);
    if ((status.style.display == "none") || (status.style.display == ""))
    {
        status.style.display = "block";
    }
    else
    {
        status.style.display = "none";
    }
}
